/* 顶级容器 */
.container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* 相册区域固定大小 */
.container > div {
  width: 540px;
  height: 300px;
  /* 容器相对定位 */
  position: relative;
}
/* 图片显示区域 */
#divBg {
  width: 100%;
  height: 100%;
  background-image: url('../../../images/img1.jpg');
  background-size: cover;
  background-position: center center;
  transition: background-image 1s;
}
/* 
浮动元素
,表示或的意思，也就是任何一个匹配都会生效
*/
#divPre,
#divNext,
#divPoint {
  position: absolute;
}

#divPre,
#divNext {
  top: 0px;
  background-color: rgba(0, 0, 0, 0.4);
  color: #aaaaaa;
  font-size: 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0px 0.2rem;
}
#divPre {
  left: 0px;
}
#divNext {
  right: 0px;
}

#divPre:hover,
#divNext:hover {
  color: #ffffff;
  cursor: pointer;
}

/* 指示器样式 */
#divPoint {
  left: 0px;
  bottom: 0px;
  width: 100%;
  text-align: center;
}

#divPoint > span {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border: 3px solid #777;
  border-radius: 50%;
  background-color: #222;
  transition: all 1s;
}

#divPoint .active {
  background-color: #ffffff;
}
